﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="WebTeamplate.Admin_Login" %>
<%@ Import Namespace="WebTeamplate"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="App_Themes/Admin/css/login.css" rel="stylesheet" type="text/css" />
    <link href="App_Themes/Admin/css/admin.css" rel="stylesheet" type="text/css" />
</head>
<body style="padding: 0; margin: 0;">
    <form id="form1" runat="server">
    <div align="center">
        <br />
        <br />
        <!-- key to check session_out in Ajax key=s18i14i22a19 -->
        <!-- Login Starts -->
        <table border="0" cellspacing="0" cellpadding="0" width="450px">
            <tr style="height: 50px;">
                <td  class="bg" align="right" width="50%">
              
            </tr>
            <tr>
                <td class="small z2" align="center">
                    <table border="0" cellpadding="0" cellspacing="0" width="80%">
                        <tr>
                            <td class="signinHdr" align="left">
                               <%-- <img src="App_Themes/Admin/images/signin.gif" alt="Sign in" title="Sign in">--%>
                               Đăng nhập hệ thống
                            </td>
                        </tr>
                        <tr>
                            <td class="small">
                                <br />
                                <asp:Login ID="Login1" runat="server" Width="100%" 
                                    FailureTextStyle-BackColor="Red" DestinationPageUrl="~/Admin/Default.aspx" 
                                    onloggedin="Login1_LoggedIn">
                                    <LayoutTemplate>
                                        <table border="0" cellpadding="5" cellspacing="5" width="100%" align="center">
                                            <tr>
                                                <td class="small" align="right" width="30%">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                                                </td>
                                                <td class="small" align="left" width="70%">
                                                    <asp:TextBox ID="UserName" runat="server" CssClass="small"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="small" align="right" width="30%">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                                                </td>
                                                <td class="small" align="left" width="70%">
                                                    <asp:TextBox ID="Password" CssClass="small" runat="server" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="small">
                                                    &nbsp;
                                                </td>
                                                <td class="small" align="left">
                                                    <%--<asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" Text="Log In"
                                                        ValidationGroup="Login1" ImageUrl="~/App_Themes/Admin/images/btnSignInNEW.gif"
                                                        ToolTip="Login" BorderWidth="0" AlternateText="Login" />--%>
                                                       
                                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập" ValidationGroup="Login1" ToolTip="Đăng nhập" CssClass="crmbutton small edit btnLogin"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="small">
                                                    &nbsp;
                                                </td>
                                                <td class="small" align="left">
                                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Nhớ cho lần đăng nhập tới." />
                                                </td>
                                            </tr>
                                           <%--  <tr>
                                                <td class="small">
                                                    &nbsp;
                                                </td>
                                                <td class="small" align="left">
                                                    <a href="ForgotPass.aspx">Quên mật khẩu</a>
                                                </td>
                                            </tr>--%>
                                            <tr>
                                                <td class="small" colspan="2" align="center">
                                                    <span class="error">
                                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                    </span>
                                                </td>
                                            </tr>
                                        </table>
                                    </LayoutTemplate>
                                </asp:Login>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <br>
    <br>
    <br>
   
    <!--end body panes-->
    </td></tr>
    <tr>
        <td colspan="2" align="center">
        </td>
    </tr>
    </table>
    </form>
</body>
</html>
